﻿<%@ Register TagPrefix="ucCommon" TagName="Common" Src="../Common/Inc/Common.ascx" %>
<%@ Register TagPrefix="ucTop" TagName="Top" Src="../Common/Inc/Top.ascx" %>
<%@ Register TagPrefix="ucMenu" TagName="Menu" Src="../Common/Inc/Menu.ascx" %>
<%@ Register TagPrefix="ucTabTitle" TagName="TabTitle" Src="../Common/Inc/TabTitle.ascx" %>
<%@ Register TagPrefix="ucCopyright" TagName="Copyright" Src="../Common/Inc/Copyright.ascx" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Crd3010p.aspx.cs" Inherits="Updms.Crd.Crd3010p" %>
<%@ Register Assembly="ChartFX.WebForms" Namespace="ChartFX.WebForms" TagPrefix="chartfx7" %>
<%@ Register Assembly="ChartFX.WebForms.Adornments" Namespace="ChartFX.WebForms.Adornments"	TagPrefix="chartfxadornments" %>
<%@ Register Assembly="ChartFX.WebForms" Namespace="ChartFX.WebForms.Galleries" TagPrefix="chartfx7galleries" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>▒ UPDMS [Crd3010p] ▒▒▒▒▒▒▒▒▒▒</title>
<ucCommon:Common id="Common" runat="server"></ucCommon:Common>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager runat="server" id="ScriptManager1" EnableScriptGlobalization="true"></asp:ScriptManager>

<table id="table_frame">
	<tr>
		<td id="top_area" colspan="2">
			<!-- Top 시작 -->
			<ucTop:Top id="Top" runat="server"></ucTop:Top>
			<!-- Top 끝 -->	
		</td>
	</tr>
	<tr>
		<td id="menu_area" runat="server">
			<!-- 메뉴 시작 -->
			<ucMenu:Menu id="Menu" runat="server"></ucMenu:Menu>
			<!-- 메뉴 끝 -->	
		</td>
		<td id="contents_area">
			<!-- 제목 시작 -->
			<ucTabTitle:TabTitle id="TabTitle" TagPrefixs="Crd3010p" runat="server"></ucTabTitle:TabTitle>
			<!-- 제목 끝 -->
			<!-- AJAX 시작 -->
			<asp:UpdatePanel ID="UpdatePanel1" runat="server">
			<ContentTemplate>
			<!-- 버튼 시작 -->
			<div class="button_area">
				<asp:linkbutton id="ibtn_ftp" Text="아이폰" runat="server" CssClass="ibtn ibtn_phone" OnClientClick="return chkFtpTransfer();" OnClick="ibtn_ftp_Click"></asp:linkbutton>
				<asp:linkbutton id="ibtn_close" Text="닫기" runat="server" CssClass="ibtn ibtn_close" OnClientClick="javascript:window.close();return false;"></asp:linkbutton>
				<asp:linkbutton id="ibtn_search" Text="검색" runat="server" CssClass="ibtn ibtn_search" OnClick="ibtn_search_Click"></asp:linkbutton>
			</div>
			<!-- 버튼 끝 -->
			<!-- 검색 시작 -->
			<table class="table_search">
				<tr>
					<td class="lbl" width="11%"><asp:Literal id="ltr_card_cd" Text="카드" runat="server" /></td>
					<td class="ctl" width="22%"><asp:dropdownlist id="ddl_card_cd" runat="server" AutoPostBack="True" CssClass="ddl" OnSelectedIndexChanged="ddl_card_cd_SelectedIndexChanged1"></asp:dropdownlist></td>
					<td class="lbl" width="11%"><asp:Literal id="ltr_paymnt_dt" Text="결제일자" runat="server" /></td>
					<td class="ctl" width="22%"><asp:dropdownlist id="ddl_paymnt_dt" runat="server" CssClass="ddl"></asp:dropdownlist></td>
					<td class="lbl" title="본사지원, 기타(통계미반영)" width="11%"><asp:Literal id="ltr_support_yn" Text="미반영제외" runat="server" /></td>
					<td class="ctl" width="22%"><asp:checkbox id="cb_support_yn" runat="server"></asp:checkbox></td>
				</tr>
			</table>
			<!-- 검색 끝 -->
			<!-- 디테일1 시작 -->
			<table cellpadding="0" cellspacing="0" border="0" width="100%">
				<tr>
					<td width="49%" valign="top">
						<div class="sub_title_icon"><asp:Literal ID="ltr_sub_title_monthly_total_amt" Text="결제총액챠트" runat="server" /></div>
						<table class="default">
							<tr>
								<td class="td_box" height="200">
									<chartfx7:chart id="chart_monthly_total_amt" runat="server" height="297px" width="450px" Palette="DarkPastels.Pastels" ImageSettings-Interactive="False">
									<AxisY Title-Text="">
									<Grids Major-Style="Solid" Interlaced="True"></Grids>
										<LabelsFormat CustomFormat="###,###,##0" />
									</AxisY>

									<AxisX LabelAngle="90" Title-Text="">
									<Grids Major-Visible="False"></Grids>
									</AxisX>

									<AllSeries PointLabels-Visible="True" Gallery="Bar"></AllSeries>

									<LegendBox ContentLayout="Far" Visible="False"></LegendBox>

									<MainPane AxisY-Title-Text=""></MainPane>
									<SpecialObjects>
										<chartfxadornments:SimpleBorder AssemblyName="ChartFX.WebForms.Adornments" Color="Transparent"
											Type="None">
										</chartfxadornments:SimpleBorder>
										<chartfxadornments:GradientBackground AssemblyName="ChartFX.WebForms.Adornments"
											ColorFrom="Transparent" EffectArea="0">
										</chartfxadornments:GradientBackground>
										<chartfx7galleries:Bar>
										</chartfx7galleries:Bar>
									</SpecialObjects>
								<Series>
									<chartfx7:SeriesAttributes />
									<chartfx7:SeriesAttributes />
									<chartfx7:SeriesAttributes />
								</Series>
									</chartfx7:chart>
								</td>
							</tr>
						</table>
						<div class="sub_title_icon" style="margin-top:10px;"><asp:Literal ID="ltr_sub_title_monthly_important_account" Text="주요계정별챠트(월간)" runat="server" /></div>
						<table class="default">
							<tr>
								<td class="td_box" height="200"><chartfx7:chart id="chart_account" runat="server" height="296px" width="450px" Palette="DarkPastels.Pastels" ImageSettings-Interactive="False">
									<AxisY Title-Text="">
									<Grids Major-Style="Solid" Interlaced="True"></Grids>
										<LabelsFormat CustomFormat="###,###,##0" />
									</AxisY>

									<AxisX LabelAngle="90" Title-Text="">
									<Grids Major-Visible="False"></Grids>
									</AxisX>

									<LegendBox ContentLayout="Near"></LegendBox>

									<MainPane AxisY-Title-Text=""></MainPane>
									<SpecialObjects>
										<chartfxadornments:SimpleBorder AssemblyName="ChartFX.WebForms.Adornments" Color="Transparent"
											Type="None">
										</chartfxadornments:SimpleBorder>
										<chartfxadornments:GradientBackground AssemblyName="ChartFX.WebForms.Adornments"
											ColorFrom="Transparent" EffectArea="0">
										</chartfxadornments:GradientBackground>
									</SpecialObjects>
								<Series>
									<chartfx7:SeriesAttributes />
								</Series>
									</chartfx7:chart>
								</td>
							</tr>
						</table>
					</td>
					<td width="2%"></td>
					<td width="49%" valign="top">
						<div class="sub_title_icon"><asp:Literal ID="ltr_sub_title_important_item" Text="주요아이템" runat="server" /></div>
						<div class="div_scroll" style="height:628px; overflow-y:auto;" id="div_detail_2">
						<table cellspacing="0" cellpadding="0" width="100%" border="0">
							<tr>
								<td><asp:GridView ID="gv_important_item_list" CssClass="table_gridview" GridLines="None" runat="server" AutoGenerateColumns="False" OnRowDataBound="gv_important_item_list_RowDataBound">
										<Columns>											
											<asp:BoundField HeaderText="N" >
												<ItemStyle HorizontalAlign="Center" />
											</asp:BoundField>
											<asp:BoundField DataField="Contents" HeaderText="결제내용" HtmlEncode="False" >
												<ItemStyle HorizontalAlign="Left" />
											</asp:BoundField>
											<asp:BoundField DataField="Cnt" HeaderText="경과일" HtmlEncode="False" >
												<ItemStyle HorizontalAlign="Center" />
											</asp:BoundField>
											<asp:BoundField DataField="Biz_Dt" HeaderText="최근결제일" HtmlEncode="False">
												<ItemStyle HorizontalAlign="Center" />
												<HeaderStyle CssClass="balloon" />
											</asp:BoundField>
											<asp:BoundField DataField="Amount" HeaderText="금액" HtmlEncode="False">
												<ItemStyle HorizontalAlign="Right" />
											</asp:BoundField>
										</Columns>
										<EmptyDataTemplate>
											<div id="no_data"></div>
										</EmptyDataTemplate>
									</asp:GridView></td>
							</tr>
						</table>
						</div>
					</td>
				</tr>
			</table>
			<!-- 디테일1 끝 -->
			<br>
			<!-- 디테일2 시작 -->
			<table cellpadding="0" cellspacing="0" border="0" width="100%">
				<tr>
					<td width="49%" valign="top">
						<div class="sub_title_icon"><asp:Literal ID="ltr_sub_title_chart_by_account" Text="계정별챠트(당월)" runat="server" /><asp:LinkButton ID="lbtn_chart_this_month_account" OnClick="lbtn_chart_this_month_account_Click" runat="server"> <img src="../Common/Images/magnifier_zoom_in.png" align="absmiddle" alt="검색" /></asp:LinkButton></div>
						<table id="tbl_chart_this_month_account" class="default" visible="false" runat="server">
							<tr>
								<td class="td_box">
									<chartfx7:Chart ID="chart_this_month_account" runat="server" Palette="DarkPastels.Pastels" Height="400px" ImageSettings-Interactive="False" Width="450px">
									<AxisY Title-Text="">
										<Grids Major-Style="Solid" Interlaced="True"></Grids>
										<LabelsFormat CustomFormat="###,###,##0" />
									</AxisY>

									<AxisX Title-Text="">
									<Grids Major-Visible="False"></Grids>
									</AxisX>

									<AllSeries Gallery="Pie" PointLabels-BackColor="Transparent" PointLabels-Font="Tahoma, 8pt" PointLabels-Visible="False"></AllSeries>

									<LegendBox Dock="Top"></LegendBox>

									<MainPane AxisY-Title-Text=""></MainPane>
									<SpecialObjects>
										<chartfxadornments:SimpleBorder AssemblyName="ChartFX.WebForms.Adornments" Color="Transparent"
											Type="None">
										</chartfxadornments:SimpleBorder>
										<chartfxadornments:GradientBackground AssemblyName="ChartFX.WebForms.Adornments"
											ColorFrom="Transparent" EffectArea="0">
										</chartfxadornments:GradientBackground>
										<chartfx7galleries:Pie ExplodingMode="All" Shadows="True" SliceSeparation="10">
										</chartfx7galleries:Pie>
									</SpecialObjects>										
									<View3D Enabled="True" />
									<Series>
										<chartfx7:SeriesAttributes MarkerStep="3" />
									</Series>
								</chartfx7:Chart></td>
							</tr>
						</table>
					</td>
					<td width="2%"></td>
					<td width="49%" valign="top">
						<div class="sub_title_icon"><asp:Literal ID="ltr_sub_title_not_payment_list" Text="미결제리스트" runat="server" /><asp:LinkButton ID="lbtn_not_payment_list" OnClick="lbtn_not_payment_list_Click" runat="server"> <img src="../Common/Images/magnifier_zoom_in.png" align="absmiddle" alt="검색" /></asp:LinkButton></div>
						<table id="tbl_not_payment_list" cellspacing="0" cellpadding="0" width="100%" border="0" visible="false" runat="server">
							<tr>
								<td height="400" valign="top"><asp:GridView ID="gv_not_payment_list" CssClass="table_gridview" GridLines="None" runat="server" AutoGenerateColumns="False" OnRowDataBound="gv_not_payment_list_RowDataBound" DataKeyNames="Biz_Div">
									<Columns>
										<asp:BoundField DataField="Card_Nm" HeaderText="카드명" HtmlEncode="False">
											<ItemStyle HorizontalAlign="Center" />
										</asp:BoundField>
										<asp:BoundField DataField="Paymnt_Dt" HeaderText="카드결제일" HtmlEncode="False">
											<ItemStyle HorizontalAlign="Center" />
										</asp:BoundField>
										<asp:BoundField DataField="Biz_Div" HeaderText="Biz_Div(X)" Visible="False" />
										<asp:BoundField DataField="Biz_Div_Nm" HeaderText="결제구분" HtmlEncode="False" >
												<ItemStyle HorizontalAlign="Right" />
											</asp:BoundField>
										<asp:BoundField DataField="Amount" DataFormatString="{0:#,##0}" HeaderText="결제금액" HtmlEncode="False">
											<ItemStyle HorizontalAlign="Right" />
										</asp:BoundField>
									</Columns>
								</asp:GridView></td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
			<!-- 디테일2 끝 -->
			<br>
			<!-- 디테일3 시작 -->
			<table cellpadding="0" cellspacing="0" border="0" width="100%">
				<tr>
					<td width="49%" valign="top">
						<div class="sub_title_icon"><asp:Literal ID="ltr_sub_title_plus_minus_by_account" Text="계정별전월대비증감액" runat="server" /><asp:LinkButton ID="lbtn_account_list" OnClick="lbtn_account_list_Click" runat="server"> <img src="../Common/Images/magnifier_zoom_in.png" align="absmiddle" alt="검색" /></asp:LinkButton></div>
						<table id="tbl_account_list" cellspacing="0" cellpadding="0" width="100%" border="0" visible="false" runat="server">
							<tr>
								<td><asp:GridView ID="gv_account_list" CssClass="table_gridview" GridLines="None" runat="server" AutoGenerateColumns="False" OnRowDataBound="gv_account_list_RowDataBound" DataKeyNames="Account" ShowFooter="true">
										<Columns>
											<asp:BoundField DataField="Account" HeaderText="Account(X)" Visible="false" />
											<asp:BoundField DataField="Account_Nm" HeaderText="계정" HtmlEncode="False">
												<ItemStyle HorizontalAlign="Left" />
												<HeaderStyle Font-Underline="true" />
											</asp:BoundField>
											<asp:BoundField DataField="Pre_Total" DataFormatString="{0:#,##0}" HeaderText="전월" HtmlEncode="False">
												<ItemStyle HorizontalAlign="Right" />
											</asp:BoundField>
											<asp:BoundField DataField="This_Total" DataFormatString="{0:#,##0}" HeaderText="기준월" HtmlEncode="False">
												<ItemStyle HorizontalAlign="Right" />
											</asp:BoundField>
											<asp:BoundField DataField="Diff_Total" DataFormatString="{0:#,##0}" HeaderText="증감액" HtmlEncode="False">
												<ItemStyle HorizontalAlign="Right" />
											</asp:BoundField>
										</Columns>
										<EmptyDataTemplate>
											<div id="no_data"></div>
										</EmptyDataTemplate>
									</asp:GridView>
								</td>
							</tr>
						</table>
					</td>
					<td width="2%"></td>
					<td width="49%" valign="top">
						<div class="sub_title_icon"><asp:Literal ID="ltr_sub_title_detail_by_account" Text="계정별상세리스트" runat="server" /></div>
						<table id="tbl_account_detail_list" cellspacing="0" cellpadding="0" width="100%" border="0" visible="false" runat="server">
							<tr>
								<td><asp:GridView ID="gv_account_detail_list" CssClass="table_gridview" GridLines="None" runat="server" AutoGenerateColumns="False" OnRowDataBound="gv_account_detail_list_RowDataBound">
										<Columns>
											<asp:BoundField DataField="Account_Nm" HeaderText="계정" HtmlEncode="False" >
												<ItemStyle HorizontalAlign="Left" Width="20%" />
											</asp:BoundField>
											<asp:BoundField DataField="Biz_Div_Nm" HeaderText="구분" HtmlEncode="False" >
												<ItemStyle HorizontalAlign="Left" Width="10%" />
											</asp:BoundField>
											<asp:BoundField DataField="Contents" HeaderText="결제내용" HtmlEncode="False" >
												<ItemStyle HorizontalAlign="Left" Width="31%" />
											</asp:BoundField>
											<asp:BoundField DataField="Pre_Total" DataFormatString="{0:#,##0}" HeaderText="전월" HtmlEncode="False">
												<ItemStyle HorizontalAlign="Right" Width="13%" />
											</asp:BoundField>
											<asp:BoundField DataField="This_Total" DataFormatString="{0:#,##0}" HeaderText="기준월" HtmlEncode="False">
												<ItemStyle HorizontalAlign="Right" Width="13%" />
											</asp:BoundField>
											<asp:BoundField DataField="Diff_Total" DataFormatString="{0:#,##0}" HeaderText="증감액" HtmlEncode="False">
												<ItemStyle HorizontalAlign="Right" Width="13%" />
											</asp:BoundField>
										</Columns>
										<EmptyDataTemplate>
											<div id="no_data"></div>
										</EmptyDataTemplate>
									</asp:GridView>
									<br />
									<asp:GridView ID="gv_account_detail_list_min" CssClass="table_gridview" GridLines="None" runat="server" AutoGenerateColumns="False" OnRowDataBound="gv_account_detail_list_min_RowDataBound">
										<Columns>
											<asp:BoundField DataField="Account_Nm" HeaderText="계정" HtmlEncode="False" >
												<ItemStyle HorizontalAlign="Left" Width="20%" />
											</asp:BoundField>
											<asp:BoundField DataField="Biz_Div_Nm" HeaderText="구분" HtmlEncode="False" >
												<ItemStyle HorizontalAlign="Left" Width="10%" />
											</asp:BoundField>
											<asp:BoundField DataField="Contents" HeaderText="결제내용" HtmlEncode="False" >
												<ItemStyle HorizontalAlign="Left" Width="31%" />
											</asp:BoundField>
											<asp:BoundField DataField="Pre_Total" DataFormatString="{0:#,##0}" HeaderText="전월" HtmlEncode="False">
												<ItemStyle HorizontalAlign="Right" Width="13%" />
											</asp:BoundField>
											<asp:BoundField DataField="This_Total" DataFormatString="{0:#,##0}" HeaderText="기준월" HtmlEncode="False">
												<ItemStyle HorizontalAlign="Right" Width="13%" />
											</asp:BoundField>
											<asp:BoundField DataField="Diff_Total" DataFormatString="{0:#,##0}" HeaderText="증감액" HtmlEncode="False">
												<ItemStyle HorizontalAlign="Right" Width="13%" />
											</asp:BoundField>
										</Columns>
										<EmptyDataTemplate>
											<div id="no_data"></div>
										</EmptyDataTemplate>
									</asp:GridView></td>
							</tr>							
						</table>
					</td>
				</tr>
			</table>
			<!-- 디테일3 끝 -->
			<!-- 리스트셋 시작 -->
			<!-- 리스트셋 끝 -->
			<!-- 카피라이트 시작 -->
			<ucCopyright:Copyright id="Copyright" runat="server"></ucCopyright:Copyright>
			<!-- 카피라이트 끝 -->
			<!-- 히든값 시작 -->
			<div id="hdn_data">
			<asp:label id="lbl_pk" runat="server"></asp:label>
			<asp:Label id="lbl_search_flag" runat="server"></asp:Label>
			<asp:checkboxlist id="cbl_search_account" runat="server" RepeatDirection="Horizontal"></asp:checkboxlist>
			<input id="h_gridview" type="hidden" runat="server" />
			<input id="h_account" type="hidden" runat="server" />
			<asp:LinkButton ID="lbtn_set_account_detail_list" runat="server" onclick="lbtn_set_account_detail_list_Click" />
			</div>
			<!-- 히든값 끝 -->
			</ContentTemplate>
			</asp:UpdatePanel>
			<!-- AJAX 끝 -->
		</td>
	</tr>
</table>

<asp:updateprogress AssociatedUpdatePanelID="UpdatePanel1" ID="updateProgress" runat="server">
	<progresstemplate>
		<div id="progressBackgroundFilter"></div>
		<div id="processMessage">
			<div id="processing"></div>
			<img src="../Common/Images/processing_img.gif" />
		</div>
	</progresstemplate>
</asp:updateprogress>

</form>
<script type="text/javascript" language="javascript" defer="defer">
	function viewAccountDetailList(gridview, account) {
		$("h_gridview").value = gridview;
		$("h_account").value = account;
		
		__doPostBack('lbtn_set_account_detail_list', '');
	}

	//FTP전송
	function chkFtpTransfer() {
		msgBox.confirm(getMsg(MSG_CFM_025), doFtpTransfer); //전송하시겠습니까?
		return false;
	}
</script>

</body>
</html>